package com.example.dp.jiemian;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.example.dp.jiemian.bt1.bt1;
import com.example.dp.jiemian.bt2.bt2;
import com.example.dp.jiemian.bt3.bt3;
import com.example.dp.jiemian.bt4.bt4;
import com.example.dp.jiemian.bt5.bt5;

public class MainActivity extends AppCompatActivity {



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.bt1).setOnClickListener(v -> {
            Intent intent1 = new Intent(this, bt1.class);
//            intent2.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

//            intent2.putExtra("KeyConvert", KeyConvert);//给intent添加额外数据，key为“str”,key值为key3
            startActivity(intent1);
        });
        findViewById(R.id.bt2).setOnClickListener(v -> {
            Intent intent2 = new Intent(this, bt2.class);
            startActivity(intent2);
        });
        findViewById(R.id.bt3).setOnClickListener(v -> {
            Intent intent3 = new Intent(this, bt3.class);
            startActivity(intent3);
        });
        findViewById(R.id.bt4).setOnClickListener(v -> {
            Intent intent4 = new Intent(this, bt4.class);
            startActivity(intent4);
        });
        findViewById(R.id.bt5).setOnClickListener(v -> {
            Intent intent5 = new Intent(this, bt5.class);
            startActivity(intent5);
        });
    }


}
